package com.manager.core.web.freemarker.tag;

import freemarker.core.Environment;
import freemarker.template.TemplateDirectiveBody;
import freemarker.template.TemplateDirectiveModel;
import freemarker.template.TemplateException;
import freemarker.template.TemplateModel;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.IOException;
import java.util.Map;

/**
 * 自定义标签管理
 *
 * @author wcy
 */
public class AuthDirective implements TemplateDirectiveModel {

    public final Logger logger = LoggerFactory.getLogger(AuthDirective.class);

    public void execute(Environment env, Map params, TemplateModel[] loopVars, TemplateDirectiveBody body)
            throws TemplateException, IOException {
        body.render(env.getOut());
    }
}